<?//php debug($documentos);?>
<div class="grid12">
    <div class="widget">
        <div class="whead"><h6>Detalle de la orden</h6><div class="clear"></div></div>
        <table cellpadding="0" cellspacing="0" width="100%" class="tAlt">
            <thead>
                <tr>
                    <th>Documento</th>                    
                    <th>Volumen</th>
                    <th>Acciones</th>
                </tr>
            </thead>

            <tbody>
                <?php foreach ($documentos as $d): ?>
                <?php $id = $d['doc']['id']; ?>
                    <tr>
                        <td><?php echo $d['documentos']['nombre']; ?></td>                       
                        <td><?php echo $d['doc']['volumen']; ?></td>
                        <td>
                            <?php echo $this->Html->link('Editar', array('controller'=>'DocumentosOrdenes', 'action'=>'editar', $id)); ?>&nbsp;&nbsp;
                            <?php echo $this->Html->link('Eliminar',array('controller'=>'DocumentosOrdenes','action'=>'eliminar',$d['doc']['id']),null,('Desea eliminar este Documento.....!!!!!?')); ?>
                        </td>
                    </tr>                    
                <?php endforeach; ?>
            </tbody>        
        </table>
        
    </div>
</div>
<div class="actions-right">
    <?php echo $this->Html->link('INSERTAR NUEVO DOCS', array('controller'=>'Ordenes', 'action'=>'aderirdoc', $idOrden),array('class'=>'buttonS bGreen ')); ?>&nbsp;&nbsp;&nbsp;&nbsp;   
<?php echo $this->Html->link("Volver &raquo;", array('controller'=>'Ordenes', 'action'=>'index'), array('class'=>'buttonS bLightBlue', 'escape' => FALSE)); ?>
</div>

